/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter6;

/**
 *
 * @author Denise Carolina
 */
public class Strings {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String a = "a", b= "b";
        System.out.println("a:: " + a + " b:: " + b) ;

        String c = a;
        a = a.concat("_concat");
        System.out.println("c:: " + c + " a:: " + a);

        b = a;
        b += "_concatB";
        System.out.println("a:: " + a + " b:: " + b) ;

        String x = "  value  ";
        System.out.println("x:: " + x.toString() + " size:: " + x.length());
        x = x.trim();
        System.out.println("x.trim():: " + x + " size:: " + x.length());

    }

}
